
		
		var aCounters = new Array(5);
		
		/*
			aCounters[0] = 0;
			aCounters[1] = 0;
			aCounters[2] = 0;
			aCounters[3] = 0;
			aCounters[4] = 0;
		*/

		for( var i =0; i < 5; i=i + 1 )
		{
		
			aCounter[ i ] = 0;
		
		}
		
					
			function showEgypt()
			{
				aCounters[ 0 ]= aCounters[ 0 ] + 1;
				//alert( "SHOW egypt" );
				
				// go through the HTML document, get the element (aka the tag
				// that has the id="picture" and change the src, alt, and
				// title attributes.
				document.getElementById( "picture" ).src = "images/egypt1.jpg";
				document.getElementById( "picture" ).alt = "This is a picture of egypt.";	
				document.getElementById( "picture" ).title = "This is a picture of egypt.";				
			
				document.getElementById( "caption" ).innerHTML = "Egypt";
			}
		
			function showMadagascar()
			{
				aCounters[ 1 ] = aCounters[ 1 ] + 1;
				document.getElementById( "picture" ).src = "images/madagascar1.jpg";
				document.getElementById( "picture" ).alt = "This is a picture of madagascar.";	
				document.getElementById( "picture" ).title = "This is a picture of madagascar.";				
			
				document.getElementById( "caption" ).innerHTML = "madagascar";

			}
		
			function showmozambique()
			{
				aCounters[ 2 ] = aCounters[ 2 ] + 1;
				alert( "SHOW THE mozambique PICTURE" );
			}
		
			function shownigeria()
			{
				aCounters[ 3 ] = aCounters[ 3 ] + 1;
				alert( "SHOW THE nigeria PICTURE" );
			}
			
			function showsouthafrica()
			{
				aCounter[ 4 ] = aCounter[ 4 ] + 1;
				alert( "SHOW THE southafrica PICTURE" );
			}
		
		
		
			
		
		
			function showCounter()
			{
				if( aCounters[0] >= 1 && aCounters[1] >= 1 && 
					aCounters[2] >= 1 && aCounters[3] >= 1 && 
					aCounters[4] >= 1)
				{
					
					alert( "CONGRATULATIONS! You've completed the course!" );
					window.location = "Page 2.html";
				}
				else
				{
					alert("CHEATER--YOU DIDN'T FINISH");
				}
			}
			
		
		
		
		
		